<?php

require '../conf.php';

class Company extends FormWriter {

  protected $db = array(
    '.name' => 'FW_company',
    '.user' => USER,
    '.pw'   => PW,
    'type' => array(
      'item'  => 'str',
      'color' => 'str',
      'size'  => array(
        'type' => 'enum',
        'vals' => "'S','M','L'"
      )
    ),
    'sales' => array(
      'dept' => 'str',
      'item' => 'type.item',
    ),
    'emp' => array(
      'name' => 'str',
      'sal'  => 'int',
      'mgr'  => '.name',
      'dept' => 'sales.dept',
      '.key' => 'name'
    ),
    'emp1' => array(
      'name'       => 'str',
      'sal'        => 'int',
      'commission' => '.sal'
    ),
    'supply' => array(
      'item'     => 'type.item',
      'supplier' => 'str'
    )
  );
}

# End of file
# vim: set ts=2 sw=2 et:
?>
